import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
import { Input as AntdInput } from 'antd';
import React from 'react';
import { useFieldContext } from '../../contexts/FieldContext';
import createField from '../../createField';
var Password = function Password(props) {
  var _useFieldContext = useFieldContext(),
    label = _useFieldContext.label;
  return /*#__PURE__*/ React.createElement(
    AntdInput.Password,
    _objectSpread(
      {
        placeholder: '\u8BF7\u8F93\u5165'.concat(label),
      },
      props,
    ),
  );
};
export default createField(Password);
